package review;

/**
 * @author oldliu
 * @since 1.0
 */
public class Keji {
    public static int c(){
        int x=100;
        try{
            x= x/2;
            return x;
        }catch (Exception e){
            e.printStackTrace();
            return x;
        }finally {
            x=200;
            System.out.println("修改了x，现在x="+x);
            //return x;
        }
        //return x;
    }

    public static Point getPoint(){
        Point p=new Point(100,100);
        try{
            return p;
        }catch (Exception e){
            e.printStackTrace();
        }finally {
            p.setX(200);
        }
        return p;
    }

    public static void main(String[] args) {
//        int i=c();
//        System.out.println(i);
        Point p=getPoint();
        System.out.println(p);
    }
}
